package com.karst.webnotes.chapter03
{
	import flash.events.Event;
	
	import org.aswing.AsWingManager;
	import org.papervision3d.objects.primitives.Arrow;
	import org.papervision3d.view.BasicView;
	
	internal class ArrowExample extends BasicView
	{
		public function ArrowExample()
		{
			super() ;
			createView() ;
			startRendering() ;
		}
		
		private var arrow : Arrow  = null ; // 平面
		private function createView() : void
		{
			if( arrow == null )
			{
				arrow = new Arrow( null ) ;
				arrow.rotationX = 30 ;
				arrow.scale = .4 ;
			}
			scene.addChild( arrow ) ;
		}
		
		override protected function onRenderTick( event : Event = null ) : void
		{
			super.onRenderTick() ;
			if( arrow )
				arrow.localRotationY++ ;
		}
	}
}